<?php echo form_open('admin/module_ctrl/search_by')?>
								<label>search by Module</label>
								<input type="text" name="search" id="user_search" class="form-control" placeholder="search" value="<?php echo $search;?>" required/>
								
									<input type="submit" class="btn blue" value="Search"/>
								<?php echo form_close();?>				
						</div>
					</div>
				</div>
				<!-- END PAGE HEADER-->
				<!-- BEGIN PAGE CONTENT-->
				<div class="row">
					<div class="col-md-12">
						<!-- BEGIN EXAMPLE TABLE PORTLET-->
						<div class="portlet box blue">
							<div class="portlet-title">
								<div class="caption">
									<i class="fa fa-edit"></i>Modules Table
								</div>
								<div class="tools">
									<a href="javascript:;" class="collapse">
									</a>
									<a href="#portlet-config" data-toggle="modal" class="config">
									</a>
									<a href="javascript:;" class="reload">
									</a>
									<a href="javascript:;" class="remove">
									</a>
								</div>
							</div>
							<div class="portlet-body">
								<div class="table-toolbar">
									<div class="row">
										<div class="col-md-6">
											<div class="btn-group">
												<a href="<?php echo base_url().'index.php/admin/module_ctrl/create_module';?>"><button id="sample_editable_1_new" class="btn green">
												Add New <i class="fa fa-plus"></i>
												</button></a>
											</div>
										</div>
										<?php if($module == 1){
											echo "No Records Found";
											echo anchor('admin/module_ctrl/index/', 'Back');exit;
										}?>
									
									</div>
								</div>
								<table class="table table-striped table-hover table-bordered" id="sample_editable_1">
								<thead>
								<tr>
								<?php foreach($module_fileds as $module_k=>$module_v):?>
									<th>
										 <?php echo anchor('admin/module_ctrl/index/'.$query_id.'/'.$module_k.'/'.(($sort_order == 'asc' && $order_by==$module_k)?'desc':'asc'),$module_v);?>
									</th>
								<?php endforeach;?>
									<th>
										 Edit
									</th>
									<th>
										 Delete
									</th>
								</tr>
								</thead>
								<tbody>
								<?php echo 'Total Records: '.$usermanagement_all_modules->total;?>
								<?php //print_r($value->module_id);exit;?>
								<?php foreach($usermanagement_all_modules->info as $value):?>
								<tr>
									<td>
										 <?php echo $value->module_name?>
									</td>
									<td>
										 <?php echo $value->sequence?>
									</td>
									<td>
										 <?php echo $value->created_date?>
									</td>
									<td>
										<a class="edit" href="<?php echo base_url().'index.php/admin/module_ctrl/edit_module/'.$value->module_id;?>">
										Edit </a>
									</td>
									<td>
										<a class="delete" href="<?php echo base_url().'index.php/admin/module_ctrl/delete_module/'.$value->module_id.'/'.$value->status ;?>">
										<?php if($value->status == 1){?>
										 Delete
										 <?php }else{ ?>
										 Active
										  <?php } ?></a>
									</td>
								</tr>
								<?php endforeach;?>
								
							</table>
							<?php echo $pagination;?>
						<!-- END EXAMPLE TABLE PORTLET-->
					</div>
				</div>